/*
 * Copyright 2004 original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jbfilter.bean.factory;

import java.util.Date;

import org.jbfilter.bean.PropertyAccessor;
import org.jbfilter.bean.fcomps.logic.AndFilterComponentBean;
import org.jbfilter.bean.fcomps.logic.DynamicLogicFilterComponentBean;
import org.jbfilter.bean.fcomps.logic.OrFilterComponentBean;
import org.jbfilter.bean.fcomps.logic.XorFilterComponentBean;
import org.jbfilter.bean.fcomps.multiple.StartEndDateFilterComponentBean;
import org.jbfilter.bean.fcomps.single.ComparableFilterComponentBean;
import org.jbfilter.bean.fcomps.single.ComparatorFilterComponentBean;
import org.jbfilter.bean.fcomps.single.ContainsStringFilterComponentBean;
import org.jbfilter.bean.fcomps.single.DateFilterComponentBean;
import org.jbfilter.bean.fcomps.single.EqualsFilterComponentBean;
import org.jbfilter.bean.fcomps.single.RegexFilterComponentBean;
import org.jbfilter.bean.fcomps.single.StringFilterComponentBean;
import org.jbfilter.core.factory.FilterComponentProvider;
/**
 * TODO
 * @author Marcus Adrian
 */
public interface FilterComponentBeansProvider extends FilterComponentProvider {

	// StringFilterComponent
	<E> StringFilterComponentBean<E> newStringFilterComponent();
	<E> StringFilterComponentBean<E> newStringFilterComponent(String id);
	<E> StringFilterComponentBean<E> newStringFilterComponent(String id, String propertyPath);
	<E> StringFilterComponentBean<E> newStringFilterComponent(String id, PropertyAccessor<E, String> propertyAccessor);
	
	// EqualsFilterComponent
	<E, T> EqualsFilterComponentBean<E, T> newEqualsFilterComponent();
	<E, T> EqualsFilterComponentBean<E, T> newEqualsFilterComponent(String id);
	<E, T> EqualsFilterComponentBean<E, T> newEqualsFilterComponent(String id, String propertyPath);
	<E, T> EqualsFilterComponentBean<E, T> newEqualsFilterComponent(String id, PropertyAccessor<E, T> propertyAccessor);

	// ContainsStringFilterComponent
	<E> ContainsStringFilterComponentBean<E> newContainsStringFilterComponent();
	<E> ContainsStringFilterComponentBean<E> newContainsStringFilterComponent(String id);
	<E> ContainsStringFilterComponentBean<E> newContainsStringFilterComponent(String id, String propertyPath);
	<E> ContainsStringFilterComponentBean<E> newContainsStringFilterComponent(String id, PropertyAccessor<E, String> propertyAccessor);

	// RegexFilterComponent
	<E> RegexFilterComponentBean<E> newRegexFilterComponent();
	<E> RegexFilterComponentBean<E> newRegexFilterComponent(String id);
	<E> RegexFilterComponentBean<E> newRegexFilterComponent(String id, String propertyPath);
	<E> RegexFilterComponentBean<E> newRegexFilterComponent(String id, PropertyAccessor<E, String> propertyAccessor);

	// DateFilterComponent
	<E> DateFilterComponentBean<E> newDateFilterComponent();
	<E> DateFilterComponentBean<E> newDateFilterComponent(String id);
	<E> DateFilterComponentBean<E> newDateFilterComponent(String id, String propertyPath);
	<E> DateFilterComponentBean<E> newDateFilterComponent(String id, PropertyAccessor<E, Date> propertyAccessor);

	// StartEndDateFilterComponent
	<E> StartEndDateFilterComponentBean<E> newStartEndDateFilterComponent();
	<E> StartEndDateFilterComponentBean<E> newStartEndDateFilterComponent(String id);
	<E> StartEndDateFilterComponentBean<E> newStartEndDateFilterComponent(String id, String propertyPath);
	<E> StartEndDateFilterComponentBean<E> newStartEndDateFilterComponent(String id, PropertyAccessor<E, Date> propertyAccessor);
	
	// ComparableFilterComponent
	<E, T extends Comparable<? super T>> ComparableFilterComponentBean<E, T> newComparableFilterComponent();
	<E, T extends Comparable<? super T>> ComparableFilterComponentBean<E, T> newComparableFilterComponent(String id);
	<E, T extends Comparable<? super T>> ComparableFilterComponentBean<E, T> newComparableFilterComponent(String id, String propertyPath);
	<E, T extends Comparable<? super T>> ComparableFilterComponentBean<E, T> newComparableFilterComponent(String id, PropertyAccessor<E, T> propertyAccessor);
	
	// ComparatorFilterComponent
	<E, T> ComparatorFilterComponentBean<E, T> newComparatorFilterComponent();
	<E, T> ComparatorFilterComponentBean<E, T> newComparatorFilterComponent(String id);
	<E, T> ComparatorFilterComponentBean<E, T> newComparatorFilterComponent(String id, String propertyPath);
	<E, T> ComparatorFilterComponentBean<E, T> newComparatorFilterComponent(String id, PropertyAccessor<E, T> propertyAccessor);

	// AndFilterComponent
	<E> AndFilterComponentBean<E> newAndFilterComponent();
	<E> AndFilterComponentBean<E> newAndFilterComponent(String id);

	// OrFilterComponent
	<E> OrFilterComponentBean<E> newOrFilterComponent();
	<E> OrFilterComponentBean<E> newOrFilterComponent(String id);
	
	// XorFilterComponent
	<E> XorFilterComponentBean<E> newXorFilterComponent();
	<E> XorFilterComponentBean<E> newXorFilterComponent(String id);

	// DynamicLogicFilterComponent
	<E> DynamicLogicFilterComponentBean<E> newDynamicLogicFilterComponent();
	<E> DynamicLogicFilterComponentBean<E> newDynamicLogicFilterComponent(String id);

}
